import request from '@/utils/request'

// 查询语音记录列表
export function listEventVoiceInfo(query) {
  return request({
    url: '/event/eventVoiceInfo/list',
    method: 'get',
    params: query
  })
}

// 查询语音记录详细
export function getEventVoiceInfo(id) {
  return request({
    url: '/event/eventVoiceInfo/' + id,
    method: 'get'
  })
}

// 新增语音记录
export function addEventVoiceInfo(data) {
  return request({
    url: '/event/eventVoiceInfo',
    method: 'post',
    data: data
  })
}

// 修改语音记录
export function updateEventVoiceInfo(data) {
  return request({
    url: '/event/eventVoiceInfo',
    method: 'put',
    data: data
  })
}

// 删除语音记录
export function delEventVoiceInfo(id) {
  return request({
    url: '/event/eventVoiceInfo/' + id,
    method: 'delete'
  })
}
